#coding:utf-8
import os


# 检索库存放的字段
OPENSEARCH_FIELDS = [
    "url",
    "uuid",
    "pkey",
    "iid",
    "dataid",
    "ctime",
    "gtime",
    "classes",
    "outlook",
    "origin",   
    "docType",   
    "reason",   
    "keywords",
    "embedding",
    "embedding_v1",
    "title",
    "title_split" ,
    "title_entity",
    "new_group_id",
    "group_id",
    "group_id_v1",
    "root"
]


BASE_PATH = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
LOG_PATH = os.path.join(BASE_PATH, "logs/SimDocsRetrieval.log")
USER_DICT_JIEBA = os.path.join(BASE_PATH, "data/new_custom.txt")
USER_DICT = os.path.join(BASE_PATH, "data/custom.txt")

ES_FIELDS = [
    "iid",
    "url",
    "dataid",
    "uuid",
    "pkey",
    "ctime",
    "gtime",
    "root",
    "title",
    "title_split",
    "title_entity",
    "embedding",
    "keywords",
    "classes",
    "group_id"
]
